package practise.alogrithm.introductionToAlogrithm;

/**
 * Created by Richard on 7/21/2014.
 */
public class TreeNode<T> {
    private TreeNode<T> left;
    private TreeNode<T> right;
    private TreeNode<T> parent;
    private T value ;

    public TreeNode<T> getParent() {
        return parent;
    }

    public void setParent(TreeNode<T> parent) {
        this.parent = parent;
    }

    public TreeNode<T> getLeft() {
        return left;
    }

    public void setLeft(TreeNode<T> left) {
        this.left = left;
    }

    public TreeNode<T> getRight() {
        return right;
    }

    public void setRight(TreeNode<T> right) {
        this.right = right;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }
}
